import Vue from 'vue'
import Router from 'vue-router'
import Layout from '../layout'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      meta: { title: '审计要素管理', icon: 'el-icon-s-grid' },
      redirect: '/enter',
      component: Layout,
      children: [
        {
          path: '/enter',
          meta: { title: '审计要素录入' },
          component: () => import('../views/enter')
        },
        {
          path: '/alteration',
          meta: { title: '审计要素变动' },
          component: () => import('../views/alteration')
        },
        {
          path: '/synthesis-query',
          meta: { title: '综合查询' },
          component: () => import('../views/synthesis-query')
        }
      ]
    }
  ]
})
